package com.netintech.project.system.user.service;

import com.netintech.project.system.user.mapper.SysWeakpasswordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * 弱密码库校验业务类
 * @author admin
 */
@Service
public class SysWeakpasswordServiceImpl implements SysWeakpasswordService {

    @Autowired
    private SysWeakpasswordMapper sysWeakpasswordMapper;


    @Override
    public int findCountByPassword(String code) {
        Map<String, String> map = new HashMap<>(2);
        map.put("code",code);
        return sysWeakpasswordMapper.findCountByPassword(map);
    }
}
